From: Vladimir Kochnev Date: Wed, 1 Oct 2025 17:48:02 +0000 (+0300) Subject: acme-acme.sh: declare staging_moved variable X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=893576cecd09502c222563b05d8cb541bc2be297;p=feed%2Fpackages.git acme-acme.sh: declare staging_moved variable It's possible that staging_moved variable is undeclared while being accessed. Lets explicitly declare it. Signed-off-by: Vladimir Kochnev --- diff --git a/net/acme-acmesh/files/hook.sh b/net/acme-acmesh/files/hook.sh index f6591de718..a29bade1ac 100644 --- a/net/acme-acmesh/files/hook.sh +++ b/net/acme-acmesh/files/hook.sh @@ -58,6 +58,7 @@ get) log info "Running ACME for $main_domain with validation_method $validation_method" + staging_moved=0 if [ -e "$domain_dir" ]; then if [ "$staging" = 0 ] && grep -q "acme-staging" "$domain_dir/$main_domain.conf"; then mv "$domain_dir" "$domain_dir.staging"